package org.hagopa.games.moneypool.game;


public class Bank {
	private long TotalCash = 0;
	private int startSum   = 0;
	private int startPay   = 0;
	public Bank(int  startSum, int startPay)
	{
		System.out.println("Init Bank Object! startSum:" + startSum + " , startPay: " + startPay);
		this.TotalCash = 10000000l;
		this.startSum = startSum;
		this.startPay = startPay;
		
	}
	public boolean decCash(int sum)
	{
		if((this.TotalCash - sum) > 0)
		{
			this.TotalCash -= sum;
			return true;
		}
		else
		{
			System.out.println("Overcoming Total Sum");
			return false;
		}
	}
	public boolean incCash(int sum){
		this.TotalCash += sum;
		return true;
	}
	public int getStartPay() {
		return startPay;
	}
	public int getStartSum() {
		return startSum;
	}
	public long getTotalCash() {
		return TotalCash;
	}
}
